#ifndef MESSAGEDIALOG_H
#define MESSAGEDIALOG_H

#include "button.h"
#include "keycontrollablemenu.h"

namespace Ui {
    class MessageDialog;
}

class MessageDialog : public KeyControllableMenu {
    Q_OBJECT
public:
    MessageDialog(QWidget *parent = 0);
    ~MessageDialog();
    void show(QString message, QWidget * parent);
    static void showDialog(QString message, QWidget * parent=0);
public slots:
    void buttonSelected();
private:
    Ui::MessageDialog *ui;
    static MessageDialog * dialog;
    Button * okButton;
    QWidget * parent;
};

#endif // MESSAGEDIALOG_H
